<header class="header">
    <div class="fix_nav">
        <div class="nav_inner">
            <a class="nav-left back-icon" href="javascript:goback();">返回</a>
            <div class="tit">意见反馈</div>
        </div>
    </div>
</header>
<div class="container tb_box">
    <form id="form1" action="#" method="post">
        <p>
        </p>
        <div class="alert alert-info alert-dismissable">
            如果您在使用中遇到任何问题，或者对我们有任何意见、建议，欢迎您向我们提交，我们将用心倾听，不断优化，为您提供更优质的服务。
        </div>
        <div class="panel panel-success">
            <div class="panel-body">

                <div class="form-group">
                    <textarea maxlength="500" class="form-control" placeholder="内容，500字以内" cols="20" rows="5" id="txtFeedback"></textarea>
                </div>
                <button class="btn btn-warning btn-block" type="button" id="submit">提  交</button>
            </div>
        </div>
    </form>
</div>
<script>
    $(document).ready(function(){

        $("#submit").click(function(){
            var content = $.trim($("#txtFeedback").val());
            if(content == ''){

                floatNotify.simple('请输入意见内容！');
                return false;
            }
            var $this = $(this);
            $this.prop('disabled',true);
            $.post('/member/feedback/index',{content:content},function(resp){
                floatNotify.simple(resp.msg);
                if(resp.status == 1){
                    setTimeout(function(){
                        window.location = window.location;
                    },1000)
                }
            },'json').always(function(){
                $this.prop('disabled',false);
            })
        })
    });
</script>